package com.taiji.service.impl;

import com.taiji.domain.Student;
import com.taiji.mapper.StuMapper;
import com.taiji.service.StuService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class StuServiceImpl implements StuService {
    @Resource
    private StuMapper mapper;

    @Override
    public int addInfo(Student student) {
        return mapper.addInfo(student);
    }

    @Override
    public int delInfoById(Integer id) {
        return mapper.delInfoById(id);
    }

    @Override
    public int updateInfo(Student student) {
        return 0;
    }

    @Override
    public Student finById(Integer id) {
        Student student = mapper.finById(id);
        return student;
    }
}
